package org.springblade.modules.admin.vo.check;

import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Struct;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * @author zcc
 * @version 1.0
 * @date 2023/12/1 14:19
 */
@Data
public class ProblemResultVo {

	@ApiModelProperty(value = "1:保养质检，2:重复故障质检，3:维保移交质检4:安装移交质检5:常规质检")
	private Integer checkType;

	private Long checkPlanId;

	private String buildingName;

	private Long buildingId;

	@ApiModelProperty("电梯地址")
	private String elevatorAddress;

	@ApiModelProperty("电梯地址")
	private Long elevatorId;

	@ApiModelProperty("完成时间")
	private Date planEndTime;

	@ApiModelProperty("问题点总数")
	private Integer problemCounts;

	@ApiModelProperty("待处理问题点总数")
	private Integer disProblemCounts;

	@ApiModelProperty("已处理问题点总数")
	private Integer enProblemCounts;

	@ApiModelProperty("问题列表")
	private List<ProblemPlanVo> list;

	private List<String> malHistoryIds;

	private Integer planStatus;

	private Integer typeStatus;

	private Integer scoreStatus;

	private Date createTime;

	public void setMalHistoryIds(String malHistoryIds) {
		if (StrUtil.isNotEmpty(malHistoryIds)) {
			this.malHistoryIds = Arrays.asList(malHistoryIds.split(","));
		}
	}
}
